package com.asen.plf.enums;

import com.asen.commons.core.base.IntegerEnum;

/**
 * 用户类型枚举
 *
 * @author ls
 * @Date 2024-08-22 16:10:00
 */
public enum UserTypeEnum implements IntegerEnum {

    ADMIN(1, "超级管理员"),
    TENANT_ADMIN(2, "租户管理员"),
    GENERAL(3, "普通用户"),
    EXTERNAL(4, "外部用户");

    private Integer value;

    private String desc;

    UserTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
